#pragma once

#include <tuple>
#include <QVariantMap>
#include <QList>

#include "Type/News.h"

namespace TCServer
{
	namespace Manager
	{
		class NewsManager
		{
		private:
			NewsManager();
		public:
			~NewsManager();
        public:
            Type::News query(quint64 id);
			quint64 insert(const Type::News &news);
			void update(const Type::News &news);
			void remove(quint64 id);
			QList<Type::News> queryAll(quint64 groupId);
		public:
			static NewsManager* instance();
        };
	}
}